package com.tarena.csmall.order.web;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.tarena.csmall.order.web.mapper")
@EnableDiscoveryClient
//重新扫描需要的用到扫描包,包括当前
@ComponentScan(basePackages ={
    "com.tarena.csmall.order.web",
    "cn.tedu.mall.common.exception",
    "cn.tedu.mall.common.utils"})
@EnableDubbo
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }
}
